﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="TeacherEntry.aspx.cs" Inherits="UniversityManagementSystem.UI.TeacherEntry" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="../Styles/fontStyleSheet.css" rel="stylesheet" type="text/css" />
</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="fontStyle">
        <asp:Label ID="Label1" runat="server" Text="Name" CssClass="labelAlignment"></asp:Label>
                             
            <asp:TextBox ID="nameTextBox" runat="server" Width="224px" 
            CssClass="textBoxAlignment"></asp:TextBox>
            <asp:RequiredFieldValidator ID="teacherNameRequiredFieldValidator" 
            runat="server" ControlToValidate="nameTextBox" 
            ErrorMessage="Teacher's Name is required" ForeColor="Red">*</asp:RequiredFieldValidator>
            <br />
            <br />
        <asp:Label ID="Label2" runat="server" Text="Address" CssClass="labelAlignment"></asp:Label>
                          
            <asp:TextBox ID="addressTextBox" runat="server" TextMode="MultiLine" 
            Width="224px" CssClass="textBoxAlignment" Height="50px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="addressRequiredFieldValidator" 
            runat="server" ControlToValidate="addressTextBox" 
            ErrorMessage="Address is required" ForeColor="Red">*</asp:RequiredFieldValidator>
            <br />
            <br />
            <br />
        <asp:Label ID="Label3" runat="server" Text="Email" CssClass="labelAlignment"></asp:Label>
                              
            <asp:TextBox ID="emailTextBox" runat="server" Width="224px" 
            CssClass="textBoxAlignment"></asp:TextBox>
            <asp:RequiredFieldValidator ID="emailRequiredFieldValidator" runat="server" 
            ControlToValidate="emailTextBox" ErrorMessage="Email is rquired" 
            ForeColor="Red">*</asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" 
            runat="server" ControlToValidate="emailTextBox" ErrorMessage="Invalid Email" 
            ForeColor="Red" 
            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            <br />
            <br />
        <asp:Label ID="Label4" runat="server" Text="Contact No" 
            CssClass="labelAlignment"></asp:Label>
                      
            <asp:TextBox ID="contactNoTextBox" runat="server" Width="224px" 
            CssClass="textBoxAlignment"></asp:TextBox>
            <asp:RequiredFieldValidator ID="contactNoRequiredFieldValidator" 
            runat="server" ControlToValidate="contactNoTextBox" 
            ErrorMessage="Contact Number is required" ForeColor="Red">*</asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="contactNumberRegularExpressionValidator" 
            runat="server" ControlToValidate="contactNoTextBox" 
            ErrorMessage="Invalid Contact Number" ForeColor="Red" 
            ValidationExpression="([\(\+])?([0-9]{1,3}([\s])?)?([\+|\(|\-|\)|\s])?([0-9]{2,4})([\-|\)|\.|\s]([\s])?)?([0-9]{2,4})?([\.|\-|\s])?([0-9]{4,8})"></asp:RegularExpressionValidator>
            <br />
            <br />
        <asp:Label ID="Label5" runat="server" Text="Designation" 
            CssClass="labelAlignment"></asp:Label>
                     <asp:DropDownList 
            ID="designationDropDownList" runat="server" CssClass="comboBoxAlignment">
            </asp:DropDownList>
            <br />
            <br />
        <asp:Label ID="Label6" runat="server" Text="Department" 
            CssClass="labelAlignment"></asp:Label>
                    
            <asp:DropDownList ID="departmentDropDownList" runat="server" 
            CssClass="comboBoxAlignment">
            </asp:DropDownList>
            <br />
            <br />
        <asp:Label ID="Label7" runat="server" Text="Allocated Credit " 
            CssClass="labelAlignment"></asp:Label>
               
            <asp:TextBox ID="assignedCreditTextBox" runat="server" Width="224px" 
            CssClass="textBoxAlignment"></asp:TextBox>
        <asp:RequiredFieldValidator ID="assignedCreditRequiredFieldValidator" 
            runat="server" ControlToValidate="assignedCreditTextBox" 
            ErrorMessage="Assigned Credit is required" ForeColor="Red">*</asp:RequiredFieldValidator>
        <asp:RangeValidator ID="RangeValidator1" runat="server" 
            ControlToValidate="assignedCreditTextBox" ErrorMessage="Invalid Credit" 
            ForeColor="Red" MaximumValue="100" MinimumValue=".75" Type="Double"></asp:RangeValidator>
        <br />
            <br />
               
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
               
            <asp:Button ID="saveButton" runat="server" onclick="saveButton_Click" 
                Text="Save" Width="145px" CssClass="button" />
        <asp:ValidationSummary ID="teacherEntryValidationSummary" runat="server" 
            ForeColor="Red" ShowMessageBox="True" ShowSummary="False" />
        <br />
        <br />
            <asp:Label ID="messageLabel" runat="server" Text=""></asp:Label>
    </div>

</asp:Content>
